﻿<ul class="layui-nav layui-nav-tree" lay-filter="">
    <li class="layui-nav-item layui-nav-itemed">
        <a href="javascript:;"><i class="layui-icon layui-icon-list cxuu-list-ico-a"></i> 栏目管理</a>
        <dl class="layui-nav-child">
            @if (CheckExt.AuthView(ViewBag.sr, "category_index"))
            {
                <dd><a href="javascript:;" onclick="loadMain('/Admin/Category/');"><i class="layui-icon layui-icon-form cxuu-list-ico"></i> 栏目列表</a></dd>
            }
        </dl>
    </li>
    <li class="layui-nav-item  layui-nav-itemed">
        <a href="javascript:;"><i class="layui-icon layui-icon-username cxuu-list-ico-a"></i> 用户管理</a>
        <dl class="layui-nav-child">
            @if (CheckExt.AuthView(ViewBag.sr, "user_index"))
            {
                <dd><a href="javascript:;" onclick="loadMain('/Admin/User');"><i class="layui-icon layui-icon-friends cxuu-list-ico"></i> 用户列表</a></dd>
            }
            @if (CheckExt.AuthView(ViewBag.sr, "usergroup_index"))
            {
                <dd><a href="javascript:;" onclick="loadMain('/Admin/UserGroup');"><i class="layui-icon layui-icon-group cxuu-list-ico"></i> 角色管理</a></dd>
            }
        </dl>
    </li>
    <li class="layui-nav-item  layui-nav-itemed">
        <a href="javascript:;"><i class="layui-icon layui-icon-set cxuu-list-ico-a"></i> 系统管理</a>
        <dl class="layui-nav-child">
            @if (CheckExt.AuthView(ViewBag.sr, "config_index"))
            {
                <dd><a href="javascript:;" onclick="loadMain('/Admin/Config');"><i class="layui-icon layui-icon-util cxuu-list-ico"></i> 系统设置</a></dd>
            }
            @if (CheckExt.AuthView(ViewBag.sr, "cache_index"))
            {
                <dd><a href="javascript:;" onclick="loadMain('/Admin/Cache');"><i class="layui-icon layui-icon-template cxuu-list-ico"></i> 缓存管理</a></dd>
            }
            @if (CheckExt.AuthView(ViewBag.sr, "log_index"))
            {
                <dd><a href="javascript:;" onclick="loadMain('/Admin/Log');"><i class="layui-icon layui-icon-log cxuu-list-ico"></i> 日志管理</a></dd>
            }
            @if (CheckExt.AuthView(ViewBag.sr, "notice_index"))
            {
                <dd><a href="javascript:;" onclick="loadMain('/Admin/Notice');"><i class="layui-icon layui-icon-notice cxuu-list-ico"></i> 站内信管理</a></dd>
            }
            @if (CheckExt.AuthView(ViewBag.sr, "attment_index"))
            {
                <dd><a href="javascript:;" onclick="loadMain('/Admin/Attment');"><i class="layui-icon layui-icon-file cxuu-list-ico"></i> 上传管理</a></dd>
            }
        </dl>
    </li>
    @* <li class="layui-nav-item  layui-nav-itemed">
        <a href="javascript:;"><i class="layui-icon layui-icon-set cxuu-list-ico-a"></i> 扩展功能</a>
        <dl class="layui-nav-child">
            @if (CheckExt.AuthView(ViewBag.sr, "video_index"))
            {
                <dd><a href="javascript:;" onclick="loadMain('/Admin/Video');"><i class="layui-icon layui-icon-util cxuu-list-ico"></i> 视频管理</a></dd>
            }
           
        </dl>
    </li>*@
</ul>
<script src="~/lib/layui/layui.js"></script>
<script>
    layui.use(['element'], function () {
        var element = layui.element;
    });
</script>